<div class="khoas index">
	<h2><?php __('Danh sách các Khoa ');?></h2>
    <?php echo $this->Html->link(__('Thêm khoa', true), array('action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo 'STT';?></th>
			<th><?php echo $this->Paginator->sort('makhoa');?></th>
			<th><?php echo $this->Paginator->sort('tenkhoa');?></th>
			<th><?php echo $this->Paginator->sort('ghichu');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;$stt=0;
	foreach ($khoas as $khoa):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $stt=$stt+1; ?>&nbsp;</td>
		<td><?php echo $khoa['Khoa']['makhoa']; ?>&nbsp;</td>
		<td><?php echo $khoa['Khoa']['tenkhoa']; ?>&nbsp;</td>
		<td><?php echo $khoa['Khoa']['ghichu']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Danh sách chi đoàn', true), array('controller'=>'chidoansvs','action' => 'index', $khoa['Khoa']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $khoa['Khoa']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $khoa['Khoa']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $khoa['Khoa']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('Danh sách khoa', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Danh sách năm học', true), array('controller' => 'namhocs', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('Danh sách khóa học', true), array('controller' => 'khoahocs', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('Địa phương', true), array('controller' => 'tinhtps', 'action' => 'index')); ?> </li>
	</ul>
</div>